package com.bdqn.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bdqn.mapper.SysUserMapper;
import com.bdqn.pojo.SysUser;
import com.bdqn.service.SysUserService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {
    @Resource
    private SysUserMapper sysUserMapper;
    @Override
    public SysUser login(String usrName, String usrPassword) {
        return sysUserMapper.login(usrName,usrPassword);
    }

    @Override
    public Page<SysUser> getPage(Page<SysUser> page, String userName, Long roleId) {
        return sysUserMapper.getPage(page,userName,roleId);
    }

    @Override
    public SysUser getUserById(Integer usrId) {
        return null;
    }

    @Override
    public List<SysUser> findAllUsers() {
        return null;
    }

    @Override
    public int saveUser(SysUser user) {
        return 0;
    }

    @Override
    public int deleteUser(int id) {
        return 0;
    }

    @Override
    public List<SysUser> selectUsersPage(Integer roleId, String usrName, int i, Integer userPageSize) {
        return null;
    }

    @Override
    public SysUser getUser(Long usrId) {
        return null;
    }

    @Override
    public Object selectUserList() {
        return null;
    }

    @Override
    public SysUser findUserByUsrName(String userName) {
        return sysUserMapper.findUserByUsrName(userName);
    }
}
